<html>
<head><meta charset="utf-8"><title>using rustc_interface · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/using.20rustc_interface.html">using rustc_interface</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="194557779"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/using%20rustc_interface/near/194557779" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tshepang Lekhonkhobe <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/using.20rustc_interface.html#194557779">(Apr 18 2020 at 18:32)</a>:</h4>
<p><code>rustup component add rustc-dev</code> is about 200MB download, and since I have a local checkout of rustc, I was wondering if there's a way of using that instead, short of just adding paths to the crates in Cargo.toml</p>



<a name="194558987"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/using%20rustc_interface/near/194558987" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/using.20rustc_interface.html#194558987">(Apr 18 2020 at 19:02)</a>:</h4>
<div class="codehilite"><pre><span></span>$ rustup toolchain link latest-stage1 build/x86_64-unknown-linux-gnu/stage1
$ rustup override <span class="nb">set</span> latest-stage1
</pre></div>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>